// 科室相关类型定义

export interface Department {
  id: number
  departmentName: string
  level: string
  isOnline: boolean
  statusText: string
  type: string
  paretId: number  // 注意：后端返回的字段名是 paretId (可能是拼写错误)
  parentDepartmentName: string
  departmentAddr: string
  isEmergencyService: boolean
  createPeople: string
  createTime: string
  remark: string
}

export interface DepartmentSearchParams {
  DepartmentName?: string
  Type?: string
}

export interface DepartmentResponse {
  msg: string
  code: number
  data: Department
  totaCount: number
  totaPage: number
  pageData: Department[]
}

export interface AddDepartmentForm {
  departmentName: string
  type: string
  paretId: number
  departmentAddr: string
  isEmergencyService: boolean
  isOnline: boolean
  remark?: string
  createPeople: string
}

export interface UpdateDepartmentForm {
  id: number
  departmentName: string
  type: string
  paretId: number
  departmentAddr: string
  isEmergencyService: boolean
  isOnline: boolean
  remark?: string
  updatePeople: string
}

export interface DeleteDepartmentParams {
  ids: number[]
  updatePeople: string
}